package 线程.demo09;

/**
 * @author wql
 * @version 1.0
 * @date 2022/11/1 15:13
 */

public class Test {
    public static void main(String[] args) {
        WqlDaemon wqlDaemon = new WqlDaemon();
        WqlDaemon wqlDaemon1 = new WqlDaemon();
        wqlDaemon.setName("666");
        wqlDaemon1.setName("777");

        wqlDaemon.setDaemon(true);
        wqlDaemon1.start();
        wqlDaemon.start();
        for (int i = 0; i < 6; i++) {
            System.out.println(Thread.currentThread().getName()+"执行"+i);
        }
    }
}
